package com.example.teach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

@Data
@TableName(value="class")
public class Clazz {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer teacherId;
    private String className;
    private Integer majorId;
    private Integer courseId;
    private Integer number;
    private Integer state; // 0-正常；1-解散
    private Integer existing;
    private Integer remaining;
    @Version
    private Integer version;
}
